﻿using System;
using System.Web;
using System.Web.Mvc;

namespace SimpleForum.Data.Models
{
    public partial class Rating
    {
        public string Image
        {
            get
            {
                // could use tagbuilder but that means including another assembly :<
                return String.Format("<img src=\"{0}\" />", "/Content/Images/icons/ratings/" + this.Name.ToLower() + ".png");
            }
        }
    }
}